﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AcademiaInteligenteWeb
{
    public partial class MainDieta : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        protected void lnkExcluir_Click(object sender, EventArgs e)
        {
            new WsAcademiaInteligente.WsAcademiaInteligenteSoapClient().ExcluirDieta(Convert.ToInt32(hfCurrentItem.Value));            
        }
        
        protected void lnkAlterar_Click(object sender, EventArgs e)
        {
            Response.Redirect("NewDieta.aspx?id=" + hfCurrentItem.Value);
        }
       
        
    }
}